<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('申请人')}:</label>
        <div class="col-xs-12 col-sm-8">
            {if $row.status !== 'manual'}
                <input id="c-admin_id" data-field="nickname" data-source="auth/admin/index" class="form-control selectpage" name="row[admin_id]" type="text" value="{$row.admin_id|htmlentities}" disabled>
            {else/}
                <input id="c-manual" class="form-control" name="row[manual]" type="text" value="{$row.manual|htmlentities}" disabled>
            {/if}
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Createtime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-createtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[createtime]" type="text" value="{$row.createtime|datetime}" readonly>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('区域')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select name="row[numbertype]" id="c-numbertype" data-rule="required" class="form-control selectpicker">
                <option value="{$row.numbertype}" selected >{$row.numbertype}</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('数量')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-num" data-rule="required" type="text" class="form-control" name="row[num]" value="{$row.num|htmlentities}" readonly>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('支付方式')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="checkbox">
                {foreach name="paymentMethodList" item="vo"}
                <label><input name="row[payment_method][]" type="radio" value="{$key}" {in name="key" value="$row.payment_method"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>
        </div>
    </div>

    <input id="cc_payment_method" type="hidden" value="{$row.payment_method|htmlentities}" />
    <input id="cc_numbertype" type="hidden" value="{$row.numbertype|htmlentities}" />
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('分配账户（提交申请后将分配完毕，请仔细选择）')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-virtualmachine" data-order-by='id desc' data-field="email" data-params='{"custom[type_operate]":"0","custom[admin_status]":"normal"}'  data-max-select-limit="50" data-multiple="true" data-source="virtualmachine/index" class="form-control selectpage" name="row[virtualmachine]" type="text" value="{$row.virtualmachine|htmlentities}" placeholder="{:__('Virtualmachine')}可以多选">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" class="form-control" rows="5" name="row[content]" cols="50"></textarea>
        </div>
    </div>
    {if $row.status !== 'manual'}
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
            <div class="col-xs-12 col-sm-8">

                <div class="radio">
                    {foreach name="statusList" item="vo"}
                    <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label>
                    {/foreach}
                </div>

            </div>
        </div>
        <div class="form-group layer-footer">
            <label class="control-label col-xs-12 col-sm-2"></label>
            <div class="col-xs-12 col-sm-8">
                <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
                <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
            </div>
        </div>
    {/if}
</form>
